package com.lxmes.sales.mapper;

import java.util.List;
import com.lxmes.sales.domain.NcProductPreSchedulingPlanMain;

/**
 * 产品预排产计划总Mapper接口
 *
 * @author lx
 * @date 2023-04-17
 */
public interface NcProductPreSchedulingPlanMainMapper
{
    /**
     * 查询产品预排产计划总
     *
     * @param id 产品预排产计划总主键
     * @return 产品预排产计划总
     */
    public NcProductPreSchedulingPlanMain selectNcProductPreSchedulingPlanMainById(Long id);

    /**
     * 查询产品预排产计划总列表
     *
     * @param ncProductPreSchedulingPlanMain 产品预排产计划总
     * @return 产品预排产计划总集合
     */
    public List<NcProductPreSchedulingPlanMain> selectNcProductPreSchedulingPlanMainList(NcProductPreSchedulingPlanMain ncProductPreSchedulingPlanMain);

    /**
     * 新增产品预排产计划总
     *
     * @param ncProductPreSchedulingPlanMain 产品预排产计划总
     * @return 结果
     */
    public int insertNcProductPreSchedulingPlanMain(NcProductPreSchedulingPlanMain ncProductPreSchedulingPlanMain);

    /**
     * 修改产品预排产计划总
     *
     * @param ncProductPreSchedulingPlanMain 产品预排产计划总
     * @return 结果
     */
    public int updateNcProductPreSchedulingPlanMain(NcProductPreSchedulingPlanMain ncProductPreSchedulingPlanMain);

    /**
     * 删除产品预排产计划总
     *
     * @param id 产品预排产计划总主键
     * @return 结果
     */
    public int deleteNcProductPreSchedulingPlanMainById(Long id);

    /**
     * 批量删除产品预排产计划总
     *
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteNcProductPreSchedulingPlanMainByIds(Long[] ids);

    String getPcMainCode (String dateTime);
}
